<%@ page import="java.util.List" %>
<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: 12460
  Date: 2024/11/30
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        List<String> list = Arrays.asList("重庆", "陕西", "湖南", "北京");
    %>
    <ol>
        <% //循环输出
            for (String s : list) {
        %>

            <li>
             <%=s %>
            </li>

       <% }%>
    </ol>
</body>
</html>
